package com.sgcc.fj.pmos.common.adapter;

import android.widget.TextView;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import com.sgcc.pmos.nativesdk.R;
import com.sgcc.fj.pmos.common.bean.StoreScreenBean;

import java.util.List;


public class GoodScreenItemAdapter extends BaseQuickAdapter<StoreScreenBean.GoodScreenItemBean, BaseViewHolder> {

    public GoodScreenItemAdapter(List<StoreScreenBean.GoodScreenItemBean> list) {
        super(R.layout.item_good_screen_item, list);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, StoreScreenBean.GoodScreenItemBean s) {

        TextView tvText = baseViewHolder.getView(R.id.tvText);
        tvText.setSelected(s.isSelect());
        tvText.setText(s.getText());
    }
}
